package com.tudouji.common.enums;

public enum WlinfoPayStatusEnum {
	
	START(1,"初始"),DPAYING(10,"待支付"),PAYING(30,"支付中"),END(40,"已支付");
	
	private Integer code;
    private String name;

    WlinfoPayStatusEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(Integer code) {
        for (WlinfoPayStatusEnum adStatus : WlinfoPayStatusEnum.values()) {
            if (adStatus.code == code) {
                return adStatus.name;
            }
        }
        return "未知物流状态";
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
